package com.nengchuan.kbms.dfs.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nengchuan.kbms.dfs.annotation.Relation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * <p>
 * 标签（元数据类型）
 * </p>
 *
 * @author abe
 * @since 2020-04-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DataTagDTO对象", description = "元数据类型")
public class DataTagDTO {

    @ApiModelProperty(value = "主键", position = 10)
    private Long id;

    @NotEmpty
    @Size(max = 40, message = "标签名称不能大于40个字符")
    @ApiModelProperty(value = "标签类型名称", position = 20)
    @Relation
    private String tagName;

    // ---------------------- 下面两个数据暂时未使用
    @Size(max = 20, message = "标签名称不能大于20个字符")
    @ApiModelProperty(value = "设备类型编码", hidden = true)
    @JsonIgnore
    private String equTypeCode;

    @ApiModelProperty(value = "是否公共标签类（0：否；1：是）", hidden = true)
    @JsonIgnore
    private String commonFlag;

}
